package com.qys.livesMall.app.user.service;

import com.qys.livesMall.app.user.model.entity.UserStatisticsDayLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.finance.model.dto.user.UserIncomeDayDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 今日店铺和用户统计表 服务类
 * </p>
 *
 * @author 
 * @since 2023-08-05
 */
public interface UserStatisticsDayLogService extends IService<UserStatisticsDayLog> {

    boolean saveUserRechargeInfo(UserIncomeDayDTO userIncomeDayDTO);

    List<UserStatisticsDayLog> getbyUserids(List<Long> userids, int type);

    List<UserStatisticsDayLog> getShopByUserids(List<Long> userids, int type);

    BigDecimal getWeekbyUserid(Long userId,Integer type);

    BigDecimal getDaybyUserid(Long userId,Integer type);

    /**
     * 昨天收益
     * @param types
     * @return
     */
    List<UserStatisticsDayLog> getYesterdayToType(List<Integer> types);

    /**
     * 当天收益
     * @param type
     * @return
     */
    List<UserStatisticsDayLog> getTodayToType(Integer type);
}
